package entities.spells;

import java.util.ArrayList;
import java.util.List;

import entities.effects.Damage;
import entities.effects.Effect;
import entities.hero.Hero;

public class GolferAttack extends Spell {
	
	private List<Effect> effectlist = new ArrayList<Effect>();
	
	private float cooldown;
	private float range;		// Reichweite in Tiles
	
	public GolferAttack() {
		Effect damage = new Damage(30);
		
		this.effectlist.add(damage);
		
		this.cooldown = 1f;
		this.range = 0.5f;		
	} 

	@Override
	public List<Effect> getEffects() {
		return effectlist;
	}

	@Override
	public float getCooldown() {
		return cooldown;
	}

	@Override
	public void cast(Hero target) {
		for (Effect e : effectlist) {
			e.invokeEffect(target);
		}
	}

	@Override
	public float getRange() {
		return range * 32;
	}

	@Override
	public String getImage() {
		return null;
	}

	@Override
	public String getDescription() {
		return null;
	}
}
